const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  lintOnSave: false, // 关闭eslint检测
  transpileDependencies: true,
  devServer: {
    port: 8081, //这⾥的端⼝是必须和⽗应⽤配置的⼦应⽤端⼝⼀致
    headers: {
      //因为qiankun内部请求都是fetch来请求资源，所以⼦应⽤必须允许跨域
      "Access-Control-Allow-Origin": "*",
    },
  },
  configureWebpack: {
    output: {
      //资源打包路径
      library: "vueApp",
      libraryTarget: "umd",
    },
  },
});
